Repository navigation
Feature: Experimental compositor display scale detection for sharper text on niri - #147
Merged
Merged
Conversation
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
MemerGamer
added a commit
that referenced
this pull request
Oct 10, 2026
Preserve release preparation and include PRs #144-#147 in the release highlights, with the remaining scaling, selection and read-only tag limits. Co-Authored-By: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com> Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolved / Related Issues
No linked issue was provided.
Changes
Adds Detect display scale from the compositor (experimental) to Settings > Appearance on Linux. It defaults off and requires a restart. When enabled on niri / xwayland-satellite without existing display or toolkit scale hints, Files reads the focused output's scale before Uno starts, using niri IPC with a bounded CLI fallback. Missing focus falls back to the first output. Detection failures preserve existing behavior; startup detection does not track movement between outputs. Some configurations may double-scale.
Existing hints retain precedence:
UNO_DISPLAY_SCALE_OVERRIDE,Xft.dpi,GDK_SCALE/GDK_DPI_SCALE, andQT_SCALE_FACTOR/QT_SCREEN_SCALE_FACTORS, including explicit 1x or malformed hints, prevent niri fallback. BothNIRI_SOCKETandWAYLAND_DISPLAYmust be present. After those hints,FILES_NIRI_SCALE=1forces detection on andFILES_NIRI_SCALE=0forces it off, overriding the saved preference; other values use the saved toggle. For a manual scale, launch withUNO_DISPLAY_SCALE_OVERRIDE=1.25 files, replacing1.25with the output scale.Steps used to test these changes
tests/Files.Platform.Testswith-warnaserror,-m:2, node reuse disabled, and low priority underflock ~/.cache/linuxfiles-agents/build.lock: passed with zero warnings or errors.src/Files.App -f net10.0-desktop -nodeReuse:false -m:2withMSBUILDDISABLENODEREUSE=1, low priority, and the shared lock: passed with zero warnings or errors on this incremental build.git diff --check, CRLF checks, append-only resource validation, and XML/XAML parsing passed. Previous work also verified 64 focused scale/settings tests and CLI timeout/output limits with process cleanup.No real display was used. Visual confirmation on the reporter's compositor remains unverified.
Claude-Session: https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq
Co-Authored-By: GPT-6.1-sol (OpenAI Codex) noreply@openai.com
🤖 Generated with Claude Code
https://claude.ai/code/session_016FAtbHHLQSiJiYcw2vnKiq